<?php	session_start();		if(!isset($_SESSION['username']) || $_SESSION['type'] != 2) exit;		include("../config.php");		mysql_connect(DB_HOST, DB_USER, DB_PASS);	mysql_select_db(DB_NAME);	mysql_query("SET NAMES " . DB_CHAR);		if(function_exists("date_default_timezone_set")){		date_default_timezone_set(APP_TZ);	}		// Load settings from database.	$result = mysql_query("SELECT * FROM `197_settings`");	$set = array();	while($row = mysql_fetch_assoc($result)){		$set[$row['name']] = $row['value'];	}		function rrmdir($dir) { 		if (is_dir($dir)) { 			$objects = scandir($dir); 			foreach ($objects as $object) { 				if ($object != "." && $object != "..") { 					if (filetype($dir."/".$object) == "dir") rrmdir($dir."/".$object); else unlink($dir."/".$object); 				} 			} 			reset($objects);      		rmdir($dir); 		} 	} 	?><?php if(isset($_GET['ajax']) && $_GET['ajax'] == true){ define('AJAX', true); } else { define('AJAX', false); } ?>